package cn.itsource.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.itsource.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 实体类：
 */
public class PetType extends BaseDomain{

    private String name;
    private String description;
    private String dirPath;
    /**
     * 父类型id
     */
    private Long pid;

    //用来装当前宠物下所有的二级宠物
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public List<PetType> getChildren() {
        return children;
    }

    public void setChildren(List<PetType> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "PetType{" +
        ", name=" + name +
        ", description=" + description +
        ", dirPath=" + dirPath +
        ", pid=" + pid +
        "}";
    }
}
